/*
 * @Author: hgy
 * @Date: 2022-10-12 15:41:29
 * @LastEditTime: 2022-10-13 14:06:31
 * @LastEditors: hgy
 * @Description:
 * @FilePath: \jep-training-trinity-group\briup-ui\src\store\modules\order.js
 * 别乱动！
 */
import { getOrder } from '@/api/order'

export default {
  namespaced: true,
  state: {
    orderList: {}
  },
  mutations: {
    SET_ORDER(state, payload) {
      state.orderList = payload
    }
  },
  actions: {
    async getOrders({ commit }, params) {
      const res = await getOrder(params)
      // console.log(res);
      commit('SET_ORDER', res.data)
    }
  }
}
